<template>
	<view>
		<view class="waybill">
			<text>单号：</text>
			<text>{{item.id}}</text>
		</view>
		<view class="msg">
			<view class="imgs">
				<img src="../../static/imgs/msd.jpg" alt="">
			</view>
			<view class="titles">
				<h5>{{item.name}}</h5>
				<view class="count">
					<h4 style="color: #E43D33;">￥{{item.price}}</h4>
				</view>
			</view>
		</view>
		<view class="reap">
			<view class="site">
				<img src="../../static/icon/dizhi1.png" alt="">
				<text>{{item.site}}</text>
			</view>
			<view>
				<button class="btn" v-if="item.kind=='2'" @click="setKind(item)" type="primary">确认已接种</button>
				<button class="btn" v-if="item.kind=='3'" disabled type="default" style="color: #999999;">已接种</button>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:['item'],
		methods: {
			setKind(item){
				item.kind='3'
			},
		}
	}
</script>

<style scoped lang="scss">
.waybill{
			font-size: 14px;
			color: #999999;
			padding: 10px 0;
		}
		.msg{
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
			.imgs{
				img{
					width: 80px;
					height: 80px;
					margin-left: 20px;
				}
			}
			.titles{
				padding: 0 10px;
				display: flex;
				flex-direction: column;
				align-items: center;
				h5{
					padding: 10px 0;
				}
				.count{
					padding: 10px 0;
					display: flex;
					justify-content: space-between;
					h4{
						padding: 0 10px;
					}
					.input{
						width: 50%;
						text-align: center;
					}
				}
			}
		}
		.reap{
			display: flex;
			justify-content: space-between;
			padding: 5px 0;
			align-items: center;
			.site{
				display: flex;
				align-items: center;
				color: #999;
				img{
					width: 20px;
					height: 20px;
					margin-right: 10px;
				}
			}
			.btn{
				width: 90px;
				font-size: 12px;
				border-radius: 20px;
				border: 1px solid #999;
				color: #FFFFFF;
				padding: 5px;
			}
		}
</style>
